import request from '@/utils/request'

// 查询员工请假列表
export function listQj(query) {
  return request({
    url: '/hrmanagement/qj/list',
    method: 'get',
    params: query
  })
}

// 查询员工请假详细
export function getQj(id) {
  return request({
    url: '/hrmanagement/qj/' + id,
    method: 'get'
  })
}

// 新增员工请假
export function addQj(data) {
  return request({
    url: '/hrmanagement/qj',
    method: 'post',
    data: data
  })
}

// 修改员工请假
export function updateQj(data) {
  return request({
    url: '/hrmanagement/qj',
    method: 'put',
    data: data
  })
}

// 删除员工请假
export function delQj(id) {
  return request({
    url: '/hrmanagement/qj/' + id,
    method: 'delete'
  })
}
